const { DBQuery } = require("../service/bd");

const userInfo = async (ctx) => {
  let _sql = `SELECT * FROM student WHERE name = '${ctx.query.name}'`;
  let data = await DBQuery(_sql);
  ctx.body = data?.[0] ?? {};
};

module.exports = {
  userInfo,
};
